package com.yan.service.impl;

import com.yan.bean.User;
import com.yan.com.yan.UserDao;
import com.yan.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Resource;

/**
 * Created by yanl_ on 2018/3/22.
 */
public class UserServiceImpl implements UserService {

    Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);

    @Resource
    private UserDao userInfoDao;


    @Override
    public User findByUsername(String username) {
        logger.info("UserInfoServiceImpl.findByUsername:{}", username);
        return userInfoDao.findByUsername(username);

    }
}
